package com.cloudsigns.factorymanager2.produce.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class ProduceToolPurchaseApplyActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private EditText edt_tool_category, edt_tool_name, edt_apply_number, edt_apply_reason;
    private ImageView img_tool_category_select, img_tool_name_select;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_produce_tool_purchase_apply);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        edt_tool_category = findViewById(R.id.edt_tool_category);
        edt_tool_name = findViewById(R.id.edt_tool_name);
        edt_apply_number = findViewById(R.id.edt_apply_number);
        edt_apply_reason = findViewById(R.id.edt_apply_reason);
        img_tool_category_select = findViewById(R.id.img_tool_category_select);
        img_tool_name_select = findViewById(R.id.img_tool_name_select);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText(getResources().getString(R.string.tool_purchase_apply));
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        img_tool_category_select.setOnClickListener(this);
        img_tool_name_select.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View v) {
        switch (v.getId()) {
            case R.id.rl_back:
                finish();
                break;
            // 工具类别
            case R.id.img_tool_category_select:
                break;
            // 工具名称
            case R.id.img_tool_name_select:
                break;
        }
    }
}
